import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsOptional } from "class-validator";

export class FindAllDto {
    @ApiProperty({ description: "接口名称", example: "用户列表接口" })
    @IsOptional()
    apiName: string;
    
    @ApiProperty({ description: "接口Url", example: "/user/list" })
    @IsOptional()
    apiUrl: string;
    
    @ApiProperty({ description: "请求方式", example: "GET" })
    @IsNotEmpty()
    method: string;
    
    @ApiProperty({ description: "菜单ID", example: 2 })
    @IsNotEmpty()
    menuId: number;
}
